﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNet.Random.Time
{
    /// <summary>
    /// 当前小时随机类，继承于HourRandService
    /// </summary>
    public class CurrentHourRandService : HourRandService
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CurrentHourRandService" /> class.
        /// </summary>
        public CurrentHourRandService()
        {
            this.Serial.Clear();
            var hour = System.DateTime.Now.Hour;
            this.Serial.Add(hour);
        }
    }
}
